import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-product/workorderPlan/page-workOrder-with-plan',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

// 工单派工详情列表
export const getDetail = (workOrderId) => {
  return request({
    url: '/api/mes-product/workorderPlan/detail-list',
    method: 'get',
    params: {
      workOrderId
    }
  });
};

// 工单的生产进度统计日维度数据列表接口
export const getProgressDetail = (workOrderId) => {
  return request({
    url: '/api/mes-product/stat-production-progress/detail',
    method: 'get',
    params: {
      workOrderId
    }
  });
};
